x86/hvm: Optimise segment accesses in hvmemul_write_segment()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Sat, 2 Jul 2016 15:29:49 +0000 (16:29 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 8 Sep 2016 15:39:46 +0000 (16:39 +0100)
commit78dd2c4b3b5f28cbe1c15796815e4f9732662f8a
treeab1ffa0ddf5c5b36589300c8cc8823c197918fec
parent4fa0105d95be6e7145a1f6fd1036ccd43976228c
x86/hvm: Optimise segment accesses in hvmemul_write_segment()

There is no need to read the segment information from VMCS/VMCB and cache it,
just to clobber the cached content immediately afterwards.

Write straight into the cache and set the accessed/dirty bits.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/emulate.c